package com.bangdream.michelia.entity.exam;

import com.alibaba.fastjson.JSON;

/**
 * @date on 2018/8/20 0:55
 * @email 909732184@qq.com
 * 提交答案时需要的数据
 */
public class AnswerBean {
    private String answer;
    private String examId;
    private String examStart;
    private String id;
    //1：交卷 0：不交卷
    private String isFinish;
    private String mark;
    private String paperId;
    private String questionId;
    private String userId;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }

    @Override
    public int hashCode() {
        return id==null?super.hashCode():id.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        if(obj instanceof AnswerBean){
            AnswerBean bean = (AnswerBean) obj;
            return hashCode()==bean.hashCode();
        }
        return super.equals(obj);
    }

    public AnswerBean() {

    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public String getExamId() {
        return examId;
    }

    public void setExamId(String examId) {
        this.examId = examId;
    }

    public String getExamStart() {
        return examStart;
    }

    public void setExamStart(String examStart) {
        this.examStart = examStart;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getIsFinish() {
        return isFinish;
    }

    public void setIsFinish(String isFinish) {
        this.isFinish = isFinish;
    }

    public String getMark() {
        return mark;
    }

    public void setMark(String mark) {
        this.mark = mark;
    }

    public String getPaperId() {
        return paperId;
    }

    public void setPaperId(String paperId) {
        this.paperId = paperId;
    }

    public String getQuestionId() {
        return questionId;
    }

    public void setQuestionId(String questionId) {
        this.questionId = questionId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
}
